<template>
  <input type="text"
         class="Sy-input"
         :placeholder="placeholder"
         :value="value"
         :disabled="disabled"
         @input="handleInput($event)">
</template>

<script>
  export default {
    name: 'SyInput',
    props: {
      value: [String, Number],
      placeholder: [String, Number],
      disabled: {
        type: Boolean,
        default: false
      }
    },
    methods: {
      handleInput(evt) {
        this.$emit('input', evt.target.value);
      }
    }
  };
</script>
